// pagesMine/component/formItem/formItem.js
Component({
  /**
  * 启用插槽
  */
  options: {
    multipleSlots: true
  },
  /**
   * 组件的属性列表
   */
  properties: {
    placeholder: {
      type: String,
      value: '请输入'
    },
    lable: {
      type: String,
      value: ''
    },
    value: {
      type: String,
      value: ''
    },
    type: {
      type: String,
      value: 'text'
    },
    flex: {
      type: String,
      value: 'row-between'
    },
    rightStyle: {
      type: String,
      value: 'width: 400rpx'
    },
    textareaStyle: {
      type: String,
      value: ''
    },
    styleColumn: String,
    border: Boolean,
    slotColumn: Boolean,
    slotLable: Boolean,
    disabled: Boolean
  },

  /**
   * 组件的初始数据
   */
  data: {
    inputValie: ''
  },

  /**
   * 组件的方法列表
   */
  methods: {
    inputChange(event) {
      const inputValie = event.detail.value
      this.setData({ inputValie })
      this.triggerEvent("change", inputValie)
    }
  }
})
